/*
 * Copyright 2010-2011 Clavid AG
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.clavid.example.oauth.suisseid;


/**
 * Bean class for accessing the Clavid SuisseID OAUTH service attributes.
 * <p>
 * @version $Id: ClavidOAuthSuisseIDBean.java 17 2011-10-21 13:09:34Z telbie $
 */
public class ClavidOAuthSuisseIDBean {

  public static final String SESSION_ATTRIBUTE_NAME = "suisseid";
  
  private String number;
  private String email;
  private String name;
  private String token;
  
  String getToken() {
    return token;
  }

  void setToken(String token) {
    this.token = token;
  }

  public String getNumber() {
    return (number != null) ? number : "";
  }
  
  void setNumber(String number) {
    this.number = number;
  }
  
  public String getEmail() {
    return (email != null) ? email : "";
  }
  
  void setEmail(String email) {
    this.email = email;
  }
  
  public String getName() {
    return (name != null) ? name : "";
  }
  
  void setName(String name) {
    this.name = name;
  }

}
